﻿@using LETS.Helpers
@using Orchard.ArchiveLater.Models
@using Orchard.ContentManagement
@using Orchard.Core.Common.Models
<div class="published"><h6>@T("Posted") @Display.PublishedState(createdDateTimeUtc: Model.ContentPart.CreatedUtc, publisheddateTimeUtc: Model.ContentPart.PublishedUtc)</h6></div>
@if (Helpers.IsPublished(Model.ContentItem)) {
    var archiveDate = ((CommonPart) Model.ContentPart).As<ArchiveLaterPart>().ScheduledArchiveUtc.Value;
    <div class="archived"><h6>@Display.ArchiveState(archiveDateTimeUtc: archiveDate)</h6></div>
}
